package imagekeeper.data;

import java.sql.Connection;
import java.sql.SQLException;
import imagekeeper.data.mapping.ImageMapper;


class SqlStatementSelectImageByUrl extends SqlStatement {
    private final static String ParamImageUrl = "imageUrl";
    
    public SqlStatementSelectImageByUrl(Connection con) throws SQLException {
        statement = con.prepareCall("{call " + ImageMapper.SpSelectImageByUrl + "(?)}");
    }
    
    public SqlStatementSelectImageByUrl(Connection con, String imageUrl) throws SQLException {
        this(con);
        statement.setString(ParamImageUrl, imageUrl);
    }
    
    public void setImageUrl(String url) throws SQLException {
        statement.setString(ParamImageUrl, url);
    }
    
}
